package com.imagine.entity;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by liangyue on 2017/9/26.
 */
@Component
public class Deal {
    private String securityId;
    private List<Delegation> buySideDelegationList;
    private List<Delegation> sellSideDelegationList;

    private List<DelegationState> historyStateList;
    public Deal(){}

    public Deal(String securityId) {
        this.securityId = securityId;
        this.buySideDelegationList = new ArrayList<Delegation>();
        this.sellSideDelegationList = new ArrayList<Delegation>();
    }

    public List<DelegationState> getHistoryStateList() {
        return historyStateList;
    }

    public void setHistoryStateList(List<DelegationState> historyStateList) {
        this.historyStateList = historyStateList;
    }

    public String getSecurityId() {
        return securityId;
    }

    public void setSecurityId(String securityId) {
        this.securityId = securityId;
    }

    public List<Delegation> getBuySideDelegationList() {
        return buySideDelegationList;
    }

    public void setBuySideDelegationList(List<Delegation> buySideDelegationList) {
        this.buySideDelegationList = buySideDelegationList;
    }

    public List<Delegation> getSellSideDelegationList() {
        return sellSideDelegationList;
    }

    public void setSellSideDelegationList(List<Delegation> sellSideDelegationList) {
        this.sellSideDelegationList = sellSideDelegationList;
    }

    @Override
    public String toString() {
        return "Deal{" +
                "securityId=" + securityId ;
    }
}
